#include "GameMain.h"

static GameLoader *loader;
GameLoader *GameLoader::sharedGameLoader()
{
	if(loader == NULL)
		loader = new GameLoader();
	return loader;
}

CCTexture2D *GameLoader::getTexture2d(char *name)
{
	CCTexture2D *texture2d = CCTextureCache::sharedTextureCache()->textureForKey(name);
	texture2d->PVRImagesHavePremultipliedAlpha(true);
	if(texture2d == NULL)
		texture2d = CCTextureCache::sharedTextureCache()->addImage(name);
	return texture2d;
}